/*  
    Copyright 2010 Mike Eheler <mike.eheler@gmail.com>

    This file is part of Four Falling Blocks Puzzle Game.

    Four Falling Blocks Puzzle Game is free software: you can
	redistribute it and/or modify it under the terms of the GNU General
	Public License as published by the Free Software Foundation, either
	version 3 of the License, or (at your option) any later version.

    Four Falling Blocks Puzzle Game is distributed in the hope that it
	will be useful, but WITHOUT ANY WARRANTY; without even the implied
	warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
	See the GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Four Falling Blocks Puzzle Game.
	
	If not, see <http://www.gnu.org/licenses/>.
*/

#include "../../debug_console.h"
#include "fbdialogs.moh"
#include <QtGui/QMessageBox>

void FBDialogs::showSize()
{
	if( referenceWidget() )
	{
		QString msg;
		QMessageBox::information(
			0,
			QString("Some Debug Info"),
			msg.sprintf("Main Window Size: %dx%d\nWith Frame: %dx%d",
				referenceWidget()->width(), referenceWidget()->height(),
				referenceWidget()->frameGeometry().width(), referenceWidget()->frameGeometry().height() )
			);
	}
}